home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir37 / incx110d.zip / INC-DOCS.LZH / APPNOTES.LZH / ARCHIVER.APP / ARCHIVER.DOC < prev    next >
Text File  |  1991-07-26  |  5KB  |  119 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.                               Application Notes
  7.                      Use of Archiver Programs (Archivers)
  8.  
  9.  
  10.  
  11.    Program
  12.  
  13.       Archivers -- Various archive/compression programs
  14.  
  15.  
  16.    Relevant Software
  17.  
  18.       Beginning   with  version  1.01,  InContext  supports  the  following
  19.       archive/compression programs:
  20.  
  21.            ARCA/ARCE     -- free ARC-compatible, but limited function
  22.            ARC           -- SEA's ARC program (version 6.02)
  23.            ARJ           -- Robert Jung's excellent newcomer
  24.            LHA           -- Haruyasu Yoshizaki's free archiver (LZH)
  25.            PAK           -- NoGate Consulting's entry, also used by the
  26.                             FidoNet-based Software Distribution Network (SDN)
  27.            PKPAK/PKUNPAK -- Phil Katz's old ARC-compatible archiver
  28.            PKZIP/PKUNZIP -- Phil Katz's current archiver (ZIP)
  29.  
  30.       LHA is free, and is distributed with InContext. The  others  must  be
  31.       obtained  and  installed  by the user, but are then well-supported by
  32.       InContext.
  33.  
  34.  
  35.    How to Use These Programs with InContext
  36.  
  37.       In order to view an archive, it is necessary that a class  definition
  38.       exist for the filename extension used by the archiver. In the case of
  39.       PKZIP,  for  example,  the class definition ZIP.ACT must exist in the
  40.       InContext installation directory. The required  class  definition  is
  41.       almost  trivial.  For  ZIP,  the  definition contains only one action
  42.       ("Edit") whose procedure definition is
  43.  
  44.            !viewArchive ZIP %f
  45.  
  46.       This definition instructs InContext to invoke  its  internal  archive
  47.       viewer,  in  ZIP  mode,  on the selected file. Class definitions have
  48.       been provided with this AppNote for the following classes: ARC,  ARJ,
  49.       LZH,  PAK,  SDN, and ZIP. Also provided is a class definition for the
  50.       AppNote class itself (APP), since AppNotes are actually LZH archives.
  51.       At the present writing, these  class  definitions  are  identical  to
  52.       those  distributed with InContext V1.01, but any additions may result
  53.       in a new release of this AppNote in advance  of  the  next  InContext
  54.       release.
  55.  
  56.  
  57.    Archivers AppNotes                 -1-               Archivers (7/18/91)
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.       If  you  use  one  of  the  ARC-compatible  archivers, you'll need to
  66.       manually edit the ARC.ACT "Edit" definition, in order to select  that
  67.       particular  archiver.  Instructions are present there, in the form of
  68.       comments.
  69.  
  70.       The class definitions just discussed tell InContext what to  do  when
  71.       you  select  an  existing archive object. A second aspect of archiver
  72.       use is the definition of procedures to allow  you  to  place  objects
  73.       into  archives.  As distributed, InContext provides this ability only
  74.       for LZH archives. To add another archiver, you'll need to change  the
  75.       definition  of  the  "Archive"  action in the Common action list, and
  76.       change the "Arc-all" action in the Group action  list.  A  small  ex-
  77.       ample,  to  show  the idea, is this definition for a Common "Archive"
  78.       action:
  79.  
  80.            !menu "Select archive type"
  81.               !choice "ARJ -- Creates or updates an ARJ archive"
  82.                  !query 1 "Enter name of ARJ archive" 12
  83.                  !verify "OK to archive this object to '%1'?"
  84.                  arj m %1 %f
  85.               !choice "LHA -- Creates or updates an LZH archive"
  86.                  !query 1 "Enter name of LHA archive" 12
  87.                  !verify "OK to archive this object to '%1'?"
  88.                  lha m %1 %f
  89.               !choice "PKZIP -- Creates or updates a ZIP archive"
  90.                  !query 1 "Enter name of PKZIP archive" 12
  91.                  !verify "OK to move this object to '%1'?"
  92.                  pkzip -mu %1 %f
  93.            !endMenu
  94.  
  95.       This action definition allows the user to select an ARJ, LHA, or  ZIP
  96.       type,  indicate  the  name of the archive, and move the selected file
  97.       into that archive. You'll find complete examples in  the  EXAMPLE.ACT
  98.       file distributed with this AppNote.
  99.  
  100.  
  101.    Author
  102.  
  103.       H. Rudy Ramsey                           Phone: 203-426-3782
  104.       Rams' Island Software                    CompuServe: 76244,324
  105.       8 Grand Place, Newtown, CT 06470-2114    BBS: 203-426-2687
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.    Archivers AppNotes                 -2-               Archivers (7/18/91)
  117.  
  118.  
  119.